class WaterMix(object):
    def mixWater(self, water=0, water_temp=""):
        return "加水%s份温度%s" % (water, water_temp)


class MlikMix(object):
    def mixMilk(self, milk=0, milk_temp=""):
        return "加牛奶%s份温度%s" % (milk, milk_temp)


class CoffeeMix(object):

    def mixCoffee(self, coffee=0):
        return "加咖啡%s份" % (coffee)


class Coffee(WaterMix, MlikMix, CoffeeMix):
    def __init__(self, water=1, water_temp="hot", milk=1, milk_temp="cold", coffee=1):
        self.water = water
        self.water_temp = water_temp
        self.milk = milk
        self.milk_temp = milk_temp
        self.coffee = coffee
        self.prescription = []
        if int(self.water > 0):
            self.prescription.append(super().mixWater(self.water, self.water_temp))
        if int(self.milk > 0):
            self.prescription.append(super().mixMilk(self.milk, self.milk_temp))
        if int(self.coffee > 0):
            self.prescription.append(super().mixCoffee(self.coffee))

    def show(self):
        for i in self.prescription:
            print(i)


c = Coffee(water=3, water_temp="热", milk=2, milk_temp="冷", coffee=2)
c.show()
